package com.slipper.system.flow.dao;

import java.util.List;

import com.slipper.system.flow.bo.FlowLineBO;
import org.apache.ibatis.annotations.Param;

public interface FlowLineDao {
    
    int insert(FlowLineBO bo);
    
    int update(FlowLineBO bo);
    
    int delete(FlowLineBO bo);

    FlowLineBO queryBy(String id);

    List<FlowLineBO> queryLine(
            @Param("flowId") String flowId,
            @Param("preNodeId") String preNodeId,
            @Param("nextNodeId") String nextNodeId);

    List<FlowLineBO> queryList(FlowLineBO bo);

    int deleteByFlowId(String flowId);
}
